#!/usr/bin/python
# encoding: utf-8
'''
@File    :   code.py
@Time    :   2020/03/11 21:54:19
@Author  :   fangkaijin 
@Version :   1.0
@Contact :   fangkaijin@gmail.com
@License :   杭州移动互联
@Desc    :   N_one
'''

# 导入库包

#需要导入自己写的py文件，需要将文件对应的包设置成 resource root，建议将全部的子包设置成resource root
import sys, os
sys.path.append("..")
from face_object.student import studentobj, animal, dog

student = studentobj.StudentObj('小黑', 71.5, '郭老师')
student.setName('大侠')
print(student.getName())
student.print_score()
student.printLevel()

#继承

d = dog.Dog()
d.run()

print(type(d))

print(isinstance(d, dog.Dog))
print(isinstance(d, animal.Animal))
print(dir(d))
print(dir(student))